<template>
    <div class="home">
        <div class="content">
            <PageDome55sub>
                <template v-slot:s2>
                    <ul>
                        <li v-for="g in games" :key="g.id"> {{ g.name }}</li>
                    </ul>
                </template>
                <template v-slot:s1>
                    <h2 >热门游戏列表</h2>
                </template>
            </PageDome55sub>
            <PageDome55sub title="今日美食城市">
                <template #s2>
                    <img :src="imgUrl" alt="" />
                </template>
                <template #s1>
                    <h2 >热门游戏列表</h2>
                </template>                
            </PageDome55sub>
            <PageDome55sub title="今日影视推荐">
                <video :src="videUrl"></video>
                
            </PageDome55sub>
        </div>
    </div>
</template>


<script setup lang="ts" name="Page54">
import { ref } from 'vue';
import PageDome55sub from './page/PageDome55sub.vue';

let games = ref([
    { id: '100001', name: '测试1' },
    { id: '100002', name: '测试2' },
    { id: '100003', name: '测试3' },
    { id: '100004', name: '测试4' }
])
let imgUrl = 'https://z1.ax1x.com/2023/11/19/piNxLo4.jpg'
let videUrl = "D:/迅雷下载/莎拉的钥匙.rmvb"

</script>

<style lang="scss" scoped>
.home {
    background-color: rgb(164, 164, 164, 654);
    padding: 20px;
    border-radius: 10px;
}

.content {
    display: flex;
    justify-content: space-evenly;
}

img,
video {
    width: 100%;
}
</style>